<?php

	$dir = dirname(dirname(__FILE__)).'/log/';
		
	$handle = opendir($dir);

	while (($file = readdir($handle))!==false) {
		if (preg_match('/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]-[0-9][0-9]-[0-9][0-9] */', $file)) {
			@unlink($dir.'/'.$file);
		}
	}
	
	
?>